package com.lehoon.tomato.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class StoreGoodsStockRecord extends Model<StoreGoodsStockRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer storeId;

    private String goodsSku;

    /**
     * 标题
     */
    private String title;

    /**
     * 改变库存
     */
    private Integer changeStock;

    /**
     * 剩余库存
     */
    private Integer remainingStock;

    private Integer createTime;

    /**
     * 1)增加，0）减少
     */
    private Boolean changeType;

    /**
     * 类型：1）采购，2）客户购买，3）客户取消订单，4）系统自动取消，5）系统修改，6）店长修改
     */
    private Integer type;

    private String rationId;

    private String remark;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
